/**
 * @param {string} s
 * @return {boolean}
 */
 var halvesAreAlike = function(s) {
  let set = new Set()
  set.add('aeiouAEIOU')
  let countL = 0
  let countR = 0
  for(let i=0;i<s.length;i++){
    if(i<s.length/2 && set.has(s[i])){
      countL++
    }
    if(i>=s.length/2&& set.has(s[i])){
      countR++
    }
  }

  return countL === countR
};